package com.xjust.service.impl;

import com.xjust.mapper.StudentInfoMapper;
import com.xjust.service.LoginService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private StudentInfoMapper studentInfoMapper;
    @Override
    public Map<String,Object> login(Map<String,Object> emp) {
        return studentInfoMapper.login(emp);
    }

    @Override
    public void register(Map<String, Object> register) {
        studentInfoMapper.insertStudent(register);
    }
}
